package com.yang.SpringTest.annotation.preposLearn;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>PrePostDemoConfig配置类</p>
 *
 * @author By: chengxuyuanshitang
 * Package com.yang.SpringTest.annotation.preposLearn
 * Ceate Time 2024-04-11 15:25
 */
@Configuration
public class PrePostDemoConfig {

    @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
    public PrePostDemo prePostDemo(){
        return new PrePostDemo();
    }

}

